<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: mets::swap_neighborhood&lt; random_generator &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classmets_1_1swap__neighborhood.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classmets_1_1swap__neighborhood-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">mets::swap_neighborhood&lt; random_generator &gt; 模板类 参考<div class="ingroups"><a class="el" href="group__model.html">Model</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Generates a stochastic subset of the neighborhood.  
 <a href="classmets_1_1swap__neighborhood.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="model_8hh_source.html">model.hh</a>&gt;</code></p>
<div class="dynheader">
类 mets::swap_neighborhood&lt; random_generator &gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classmets_1_1swap__neighborhood.png" usemap="#mets::swap_5Fneighborhood_3C_20random_5Fgenerator_20_3E_map" alt=""/>
  <map id="mets::swap_5Fneighborhood_3C_20random_5Fgenerator_20_3E_map" name="mets::swap_5Fneighborhood_3C_20random_5Fgenerator_20_3E_map">
<area href="classmets_1_1move__manager.html" title="A neighborhood generator." alt="mets::move_manager" shape="rect" coords="0,0,285,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:gadf750e2f7c7ff73f7d3e3d9bedc3e417"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__model.html#gadf750e2f7c7ff73f7d3e3d9bedc3e417">swap_neighborhood</a> (random_generator &amp;r, unsigned int moves)</td></tr>
<tr class="memdesc:gadf750e2f7c7ff73f7d3e3d9bedc3e417"><td class="mdescLeft">&#160;</td><td class="mdescRight">A neighborhood exploration strategy for <a class="el" href="classmets_1_1swap__elements.html" title="A mets::mana_move that swaps two elements in a mets::permutation_problem.">mets::swap_elements</a>.  <a href="group__model.html#gadf750e2f7c7ff73f7d3e3d9bedc3e417">更多...</a><br /></td></tr>
<tr class="separator:gadf750e2f7c7ff73f7d3e3d9bedc3e417"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5bb7936b6ad1ff51e8574996f77d457f"><td class="memItemLeft" align="right" valign="top">
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__model.html#ga5bb7936b6ad1ff51e8574996f77d457f">~swap_neighborhood</a> ()</td></tr>
<tr class="memdesc:ga5bb7936b6ad1ff51e8574996f77d457f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Dtor. <br /></td></tr>
<tr class="separator:ga5bb7936b6ad1ff51e8574996f77d457f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9ece6da99a38121877de3e4f6c36293c"><td class="memItemLeft" align="right" valign="top">
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__model.html#ga9ece6da99a38121877de3e4f6c36293c">refresh</a> (<a class="el" href="classmets_1_1feasible__solution.html">mets::feasible_solution</a> &amp;s)</td></tr>
<tr class="memdesc:ga9ece6da99a38121877de3e4f6c36293c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Selects a different set of moves at each iteration. <br /></td></tr>
<tr class="separator:ga9ece6da99a38121877de3e4f6c36293c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classmets_1_1move__manager"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classmets_1_1move__manager')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classmets_1_1move__manager.html">mets::move_manager</a></td></tr>
<tr class="memitem:a546406d667dc0d50b5e96ba9f26df457 inherit pub_methods_classmets_1_1move__manager"><td class="memItemLeft" align="right" valign="top"><a id="a546406d667dc0d50b5e96ba9f26df457"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1move__manager.html#a546406d667dc0d50b5e96ba9f26df457">move_manager</a> ()</td></tr>
<tr class="memdesc:a546406d667dc0d50b5e96ba9f26df457 inherit pub_methods_classmets_1_1move__manager"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the move manager with an empty list of moves <br /></td></tr>
<tr class="separator:a546406d667dc0d50b5e96ba9f26df457 inherit pub_methods_classmets_1_1move__manager"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8043a2af47c32cd18d49549cc3075f26 inherit pub_methods_classmets_1_1move__manager"><td class="memItemLeft" align="right" valign="top"><a id="a8043a2af47c32cd18d49549cc3075f26"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1move__manager.html#a8043a2af47c32cd18d49549cc3075f26">~move_manager</a> ()</td></tr>
<tr class="memdesc:a8043a2af47c32cd18d49549cc3075f26 inherit pub_methods_classmets_1_1move__manager"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual destructor <br /></td></tr>
<tr class="separator:a8043a2af47c32cd18d49549cc3075f26 inherit pub_methods_classmets_1_1move__manager"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27ab567f8a638f5d6db4b39c452c8b31 inherit pub_methods_classmets_1_1move__manager"><td class="memItemLeft" align="right" valign="top"><a id="a27ab567f8a638f5d6db4b39c452c8b31"></a>
<a class="el" href="classmets_1_1move__manager.html#aeefc958bebc97fe6b61ce19c0ef37f1c">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1move__manager.html#a27ab567f8a638f5d6db4b39c452c8b31">begin</a> ()</td></tr>
<tr class="memdesc:a27ab567f8a638f5d6db4b39c452c8b31 inherit pub_methods_classmets_1_1move__manager"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begin iterator of available moves queue. <br /></td></tr>
<tr class="separator:a27ab567f8a638f5d6db4b39c452c8b31 inherit pub_methods_classmets_1_1move__manager"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1418389c4f7b900ab3ca9d211b6cf9b5 inherit pub_methods_classmets_1_1move__manager"><td class="memItemLeft" align="right" valign="top"><a id="a1418389c4f7b900ab3ca9d211b6cf9b5"></a>
<a class="el" href="classmets_1_1move__manager.html#aeefc958bebc97fe6b61ce19c0ef37f1c">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1move__manager.html#a1418389c4f7b900ab3ca9d211b6cf9b5">end</a> ()</td></tr>
<tr class="memdesc:a1418389c4f7b900ab3ca9d211b6cf9b5 inherit pub_methods_classmets_1_1move__manager"><td class="mdescLeft">&#160;</td><td class="mdescRight">End iterator of available moves queue. <br /></td></tr>
<tr class="separator:a1418389c4f7b900ab3ca9d211b6cf9b5 inherit pub_methods_classmets_1_1move__manager"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07f46fd5f66246612d7595e78329f6d2 inherit pub_methods_classmets_1_1move__manager"><td class="memItemLeft" align="right" valign="top"><a id="a07f46fd5f66246612d7595e78329f6d2"></a>
<a class="el" href="classmets_1_1move__manager.html#afa4c4ed8f7f06f5b71d9bef68c11b36d">size_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1move__manager.html#a07f46fd5f66246612d7595e78329f6d2">size</a> () const</td></tr>
<tr class="memdesc:a07f46fd5f66246612d7595e78329f6d2 inherit pub_methods_classmets_1_1move__manager"><td class="mdescLeft">&#160;</td><td class="mdescRight">Size of the neighborhood. <br /></td></tr>
<tr class="separator:a07f46fd5f66246612d7595e78329f6d2 inherit pub_methods_classmets_1_1move__manager"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:gae36fd69f7106de490bab4d5fe527481a"><td class="memItemLeft" align="right" valign="top">
void&#160;</td><td class="memItemRight" valign="bottom"><b>randomize_move</b> (<a class="el" href="classmets_1_1swap__elements.html">swap_elements</a> &amp;m, unsigned int <a class="el" href="classmets_1_1move__manager.html#a07f46fd5f66246612d7595e78329f6d2">size</a>)</td></tr>
<tr class="separator:gae36fd69f7106de490bab4d5fe527481a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classmets_1_1move__manager"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classmets_1_1move__manager')"><img src="closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="classmets_1_1move__manager.html">mets::move_manager</a></td></tr>
<tr class="memitem:a7556008e1145ace761974ad08dbf77e6 inherit pro_methods_classmets_1_1move__manager"><td class="memItemLeft" align="right" valign="top"><a id="a7556008e1145ace761974ad08dbf77e6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>move_manager</b> (const <a class="el" href="classmets_1_1move__manager.html">move_manager</a> &amp;)</td></tr>
<tr class="separator:a7556008e1145ace761974ad08dbf77e6 inherit pro_methods_classmets_1_1move__manager"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a9ed0850c5bf2e1fdfdffdec5ee583dd9"><td class="memItemLeft" align="right" valign="top"><a id="a9ed0850c5bf2e1fdfdffdec5ee583dd9"></a>
random_generator &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>rng</b></td></tr>
<tr class="separator:a9ed0850c5bf2e1fdfdffdec5ee583dd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5439d5f8cdaf0114bc62663aa7f34486"><td class="memItemLeft" align="right" valign="top"><a id="a5439d5f8cdaf0114bc62663aa7f34486"></a>
std::tr1::uniform_int&#160;</td><td class="memItemRight" valign="bottom"><b>int_range</b></td></tr>
<tr class="separator:a5439d5f8cdaf0114bc62663aa7f34486"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd0268f63eda5cf5b660c8dc6bdbf36b"><td class="memItemLeft" align="right" valign="top"><a id="abd0268f63eda5cf5b660c8dc6bdbf36b"></a>
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><b>n</b></td></tr>
<tr class="separator:abd0268f63eda5cf5b660c8dc6bdbf36b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classmets_1_1move__manager"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classmets_1_1move__manager')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="classmets_1_1move__manager.html">mets::move_manager</a></td></tr>
<tr class="memitem:a764ca3061b1f019b5508fc03323fd501 inherit pro_attribs_classmets_1_1move__manager"><td class="memItemLeft" align="right" valign="top"><a id="a764ca3061b1f019b5508fc03323fd501"></a>
std::deque&lt; <a class="el" href="classmets_1_1move.html">move</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1move__manager.html#a764ca3061b1f019b5508fc03323fd501">moves_m</a></td></tr>
<tr class="memdesc:a764ca3061b1f019b5508fc03323fd501 inherit pro_attribs_classmets_1_1move__manager"><td class="mdescLeft">&#160;</td><td class="mdescRight">The moves queue <br /></td></tr>
<tr class="separator:a764ca3061b1f019b5508fc03323fd501 inherit pro_attribs_classmets_1_1move__manager"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_types_classmets_1_1move__manager"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classmets_1_1move__manager')"><img src="closed.png" alt="-"/>&#160;Public 类型 继承自 <a class="el" href="classmets_1_1move__manager.html">mets::move_manager</a></td></tr>
<tr class="memitem:aeefc958bebc97fe6b61ce19c0ef37f1c inherit pub_types_classmets_1_1move__manager"><td class="memItemLeft" align="right" valign="top"><a id="aeefc958bebc97fe6b61ce19c0ef37f1c"></a>
typedef std::deque&lt; <a class="el" href="classmets_1_1move.html">move</a> * &gt;::<a class="el" href="classmets_1_1move__manager.html#aeefc958bebc97fe6b61ce19c0ef37f1c">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1move__manager.html#aeefc958bebc97fe6b61ce19c0ef37f1c">iterator</a></td></tr>
<tr class="memdesc:aeefc958bebc97fe6b61ce19c0ef37f1c inherit pub_types_classmets_1_1move__manager"><td class="mdescLeft">&#160;</td><td class="mdescRight">Iterator type to iterate over moves of the neighborhood <br /></td></tr>
<tr class="separator:aeefc958bebc97fe6b61ce19c0ef37f1c inherit pub_types_classmets_1_1move__manager"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa4c4ed8f7f06f5b71d9bef68c11b36d inherit pub_types_classmets_1_1move__manager"><td class="memItemLeft" align="right" valign="top"><a id="afa4c4ed8f7f06f5b71d9bef68c11b36d"></a>
typedef std::deque&lt; <a class="el" href="classmets_1_1move.html">move</a> * &gt;::<a class="el" href="classmets_1_1move__manager.html#afa4c4ed8f7f06f5b71d9bef68c11b36d">size_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1move__manager.html#afa4c4ed8f7f06f5b71d9bef68c11b36d">size_type</a></td></tr>
<tr class="memdesc:afa4c4ed8f7f06f5b71d9bef68c11b36d inherit pub_types_classmets_1_1move__manager"><td class="mdescLeft">&#160;</td><td class="mdescRight">Size type <br /></td></tr>
<tr class="separator:afa4c4ed8f7f06f5b71d9bef68c11b36d inherit pub_types_classmets_1_1move__manager"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename random_generator = std::tr1::minstd_rand0&gt;<br />
class mets::swap_neighborhood&lt; random_generator &gt;</h3>

<p>Generates a stochastic subset of the neighborhood. </p>
</div><hr/>该类的文档由以下文件生成:<ul>
<li>recognition/include/pcl/recognition/3rdparty/metslib/<a class="el" href="model_8hh_source.html">model.hh</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>mets</b></li><li class="navelem"><a class="el" href="classmets_1_1swap__neighborhood.html">swap_neighborhood</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
